import { Prefab, Sprite, SpriteFrame } from "cc"
import { AttackData } from "./AttackData"

export enum ItemType {
    Useable,
    Weapon,
    Armor
}

export class ItemData {

    itemType: ItemType

    name: string

    spriteFrame: SpriteFrame

    amount: number

    description: string
    // 是否可堆叠
    stackable: boolean

    prefab: Prefab

    data: AttackData

}